The purchase of a futures or an option with the same terms (quantity, amount or reference rate, maturity, underlying) as a futures or option for which the investor is already in a short position.
The new long position cancels out the initial short position, which is thus closed before the contract matures.